import request from '@/utils/request'

export function getDepartMentListAsTree() {
  return request({
    url: 'indentity/company/getCompanyListAsTree',
    method: 'post',
  })
}

export function updateDepartMentByDepartMentId(data) {
  return request({
    url: '/indentity/company/updateCompanyInfo',
    method: 'post',
    data
  })
}

export function addDepartMent(data) {
  return request({
    url: '/indentity/company/addCompanyInfoBatches',
    method: 'post',
    data
  })
}
export function deleteCompany(companyId) {
  return request({
    url: '/indentity/company/deleteCompanyInfo',
    method: 'post',
    params:{companyId}
  })
}





